﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCIndexSmallFarmHouse.ascx.cs"
    Inherits="NJL.Web.Controls.WUCIndexSmallFarmHouse" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Import Namespace="System.Data" %>
<div class="house box cleanFlex cont" style="border-top: 2px solid #44b704;">
    <!--左侧-->
    <div class="f_left leftResort">
        <div class="titleFontinmg">
            <span><a href="<%if(WEBSITE_FOCUS_CITY_CODE!="") Response.Write("/"+WEBSITE_FOCUS_CITY_NAME_PINYIN); %>/njxy/">
                更多</a></span>
            <h2 class="somllhouse">
                &nbsp;</h2>
            <strong class="f_left">与城市截然不同的生活方式，带上家人一起享受吧！ </strong>
        </div>
        <div class="cont">
            <div class="imghouse f_left">
                <ul class="imglist">
                    <% 
                        DataSet ds;
                        NJL.BLL.NJL_BOOK bllBook = new NJL.BLL.NJL_BOOK();
                        for (int i = 0; i < TOP_6_COMPANY_COUNT; i++)
                        {
                            ds = bllBook.GetList("TARGET_ID='" + listCompany[i].ID + "' and TYPE_CODE='2'");
                    %>
                    <li style="height: 140px; width: 155px; overflow:hidden">
                        <div style="position: relative;">
                            <a target="_blank" href="/shangpu/<%=listCompany[i].ID %>-index.html" title="[<%=base.GetAreaName(listCompany[i].AREA_CODE) %>农家乐]<%=listCompany[i].COMPANY_NAME %>">
                                <img style="width: 147px; height: 105px;" class="picBor" src="<%=GetImageUrl(listCompany[i].IMAGE_CODE,"1") %>"
                                    alt="[<%=base.GetAreaName(listCompany[i].AREA_CODE) %>农家乐]<%=listCompany[i].COMPANY_NAME %>" />
                            </a>
                            <p class="font14">
                                <a title="[<%=base.GetAreaName(listCompany[i].AREA_CODE) %>农家乐]<%=listCompany[i].COMPANY_NAME %>"
                                    target="_blank" href="/shangpu/<%=listCompany[i].ID %>-index.html">
                                    <%if (listCompany[i].COMPANY_NAME.Length > 10) { Response.Write(listCompany[i].COMPANY_NAME.Substring(0, 10)); } else { Response.Write(listCompany[i].COMPANY_NAME); }%></a></p>
                        </div>
                        <%
                            if (ds.Tables[0].Rows.Count > 0 && listCompany[i].IS_OPEN_BOOK == 1)
                            {
                        %>
                        <div class="icon_yuding" title="此商户可以预定">
                        </div>
                        <%
                            } %>
                    </li>
                    <% 
}
                    %>
                </ul>
            </div>
            <!--图片链接-->
            <div class="imglink f_right">
                <ul class="imglist" style="margin-top: 5px;">
                    <%
                        for (int i = 0; i < LAST_COMPANY_COUNT; i++)
                        {
                    %>
                    <li style="height: 75px; width: 85px;"><a title="[<%=base.GetAreaName(listCompany[i+6].AREA_CODE) %>农家乐]<%=listCompany[i+6].COMPANY_NAME %>"
                        target="_blank" href="/shangpu/<%=listCompany[i+6].ID %>-index.html">
                        <img alt="[<%=base.GetAreaName(listCompany[i+6].AREA_CODE) %>农家乐]<%=listCompany[i+6].COMPANY_NAME %>"
                            title="[<%=base.GetAreaName(listCompany[i+6].AREA_CODE) %>农家乐]<%=listCompany[i+6].COMPANY_NAME %>"
                            style="width: 75px; height: 57px;" class="picBor" src="<%=GetImageUrl(listCompany[i+6].IMAGE_CODE,"3") %>" />
                    </a></li>
                    <% 
                        }
                    %>
                </ul>
            </div>
        </div>
    </div>
    <!--右侧民俗-->
    <div class="f_right custom">
        <div>
            <div class="titleArr">
                <h2 class="smallhouse">
                    这里是农村</h2>
            </div>
            <ul class="arrowList02">
                <asp:Repeater ID="rptNews" runat="server" EnableViewState="False">
                    <ItemTemplate>
                        <li><strong class="font14"><a href="/njxy/njzx/<%#Eval("ID") %>.html" title="<%#Eval("NEWS_TITLE") %>"
                            target="_blank">
                            <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),15)%></a> </strong>
                            <p>
                                <%#PageValidate.SqlText(Eval("NEWS_SUBJECT_TITLE").ToString(),30)%>
                            </p>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="blank">
        </div>
        <%@ register src="Ad.ascx" tagname="Ad" tagprefix="uc1" %>
        <uc1:Ad ID="Ad1" runat="server" AdId="3" />
    </div>
    <div class="cleanFlex" style="height: 1px; overflow: hidden;">
    </div>
</div>
